package com.lhd._05mvcboot03_1.mapper;

import com.lhd._05mvcboot03_1.pojo.entity.Article;
import com.lhd._05mvcboot03_1.pojo.entity.User;
import com.lhd._05mvcboot03_1.pojo.vo.ArticleVO;
import com.lhd._05mvcboot03_1.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lhd
 * @date 2024/4/28
 * @apiNote
 */
public interface UserArticleMapper {
    void insert(User user);

    UserVO selectByUsername(String username);

    UserVO selectByUsernameAndPassword(@Param("username")String username, @Param("password")  String password);

    int insertArticle(Article article);

    ArticleVO selectByArticleId(Long id);
}
